package app.common.utils.wdt.sdk.api.purchasereturn;

import app.common.utils.wdt.sdk.Pager;
import app.common.utils.wdt.sdk.WdtErpException;
import app.common.utils.wdt.sdk.api.purchasereturn.dto.PurchaseReturnCreateOrderRequest;
import app.common.utils.wdt.sdk.api.purchasereturn.dto.PurchaseReturnCreateOrderResponse;
import app.common.utils.wdt.sdk.api.purchasereturn.dto.PurchaseReturnQueryRequest;
import app.common.utils.wdt.sdk.api.purchasereturn.dto.PurchaseReturnQueryResponse;
import app.common.utils.wdt.sdk.impl.Api;

import java.util.List;

public interface PurchaseReturnAPI
{
	@Api(value = "purchase.PurchaseReturn.createOrder")
	PurchaseReturnCreateOrderResponse createOrder(PurchaseReturnCreateOrderRequest.PurchaseReturnOrderInfo orderInfo,
			List<PurchaseReturnCreateOrderRequest.PurchaseReturnDetail> detailList, boolean isSubmit);

	@Api(value = "purchase.PurchaseReturn.queryWithDetail", paged = true)
	PurchaseReturnQueryResponse search(PurchaseReturnQueryRequest request, Pager pager) throws WdtErpException;
}
